<style>
.showcode {position: absolute;top:5rem;right:0;padding:0.15rem;font-size:0.6rem;color:#fff; background-color: rgb(255, 255, 255, 0.3);border-top-left-radius:1rem;border-bottom-left-radius:1rem;}

</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="background: {{main.syscolor||'#05c175'}};padding:1rem 0.5rem;margin-top:0;padding-bottom:1.6rem;">
			<div ng-if="pagedata.isposter==1" class="showcode" style="z-index:18" href="javascript:;" ng-click="pagedata.upposter();">我的海报 <i class="icon icon-qrcode" style="color:#fff;font-size: 0.6rem;"></i></div>
			<div class="fui-cellone" style="padding:0">
				<div class="fui-cellone-label" style="width:auto;">
					<img style="border-radius: 100%;width:3rem;height:3rem" ng-src="{{tomedia(pagedata.item.avatar) || '../core/resource/images/gw-user.png'}}" />
				</div>
				<div class="fui-cellone-text" style="font-size:0.7rem;color:#fff;padding-left:0.5rem">
					<div style="padding-bottom:0.2rem">
						<span class="bold">{{pagedata.member.nickname}} </span>
					</div>
					<div style="padding-bottom:0.2rem">
					<span class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;">{{pagedata.member.level.title}}</span>
					<span ng-if="pagedata.member.nextlevel.title" style="font-size:0.65rem" href="javascript:;" ng-click="access_json('/member.buyvip//level_id='+pagedata.member.nextlevel.id)"> 升级[{{pagedata.member.nextlevel.title}}]</span>
					</div>
					<div style="width:100%;height:1.3rem">
						<span class="progress" style="float: left;margin-top:0.35rem;margin-bottom:0.25rem;width: 4.5rem;height: 0.5rem;border-radius: .5rem;overflow: hidden;">
							<div class="progress-bar" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" style="width: {{pagedata.member.percent || 1}}%;background-color:#FCC600;"></div>
						</span>
						<span class="process-text" style="float: left;font-size:0.55rem;margin:0.2rem;">{{pagedata.member.percent || 0}}%</span>
					</div>
					<div style="margin-top:0.3rem;font-size:0.65rem">约会瓶{{pagedata.member.pingnum}}个 <span class="fui-tag-red-o" ng-click="access_json('jy_xiangqin/ping.buyping/')" style="margin-top:-0.2rem;padding:0.06rem 0.3rem;font-size:0.6rem">购买约会瓶</span></div>
				</div>
				<div class="fui-cellone-remark noremark" style="font-size:0.7rem;color:#fff;" href="javascript:;" ng-click="access_json('jy_xiangqin/member.myinfo/');">
					 <a style="border-radius: 1rem;padding:0.2rem 0.3rem;font-size:0.6rem; background-color: rgb(255, 255, 255, 0.3);width:auto;color:#fff"><i class="icon icon-qiehuan" style="font-size:0.6rem"></i> 立即完善</a>
				</div>
			</div>	
			<div class="fui-icon-group noborder  col-3" style="padding-top:0.5rem">
					<div class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="subtitle" style="font-size:0.7rem;color:#fff">看过我</div>
														<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.lookmy || 0}}</div>
													</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="subtitle" style="font-size:0.7rem;color:#fff">赞过我</div>
														<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.likemy || 0}}</div>
														
													</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
													<div>
														<div class="subtitle" style="font-size:0.7rem;color:#fff">评论我</div>
														<div class="text bold" style="color:#fff;line-height:1.6rem;font-size:1rem">{{pagedata.pingmy || 0}}</div>
													</div>
					</div>
			</div>			
			</div>
			<div style="padding:0.5rem;margin-top:-2.3rem">
			<div class="fui-icon-group noborder col-4 radius" style="background:#fff">
							<div class="fui-icon-col-sm external" style="margin:0">
									<div>
											<div class="text bold">{{pagedata.item.credit2 || '0.00'}}</div>
											<div class="text" style="color: #666;">余额</div>
									</div>
							</div>
							<div class="fui-icon-col-sm external" style="margin:0">
									<div ng-click="access_json('core/member.credit_log//type=1')">
											<div class="text bold">{{pagedata.item.credit1 || '0'}}</div>
											<div class="text" style="color: #666;">积分 <span style="color:{{main.syscolor || '#4491F1'}}">查看</span></div>
									</div>
							</div>
							<div ng-repeat="c in pagedata.item.credit_type" class="fui-icon-col-sm external" style="margin:0">
									<div>
										<div class="text bold">{{c.data || '0.00'}}</div>
										<div ng-if="c.id!=3" ng-click="access_json('core/member.credit_log//type='+c.id)" class="text" style="color: #666;">{{c.title}} <span style="color:{{main.syscolor || '#4491F1'}}">查看</span></div>
										<div ng-if="c.id==3" ng-click="pagedata.showrecharge=true;pagedata.post.type=3" class="text" style="color: #666;">{{c.title}} <span style="color:{{main.syscolor || '#4491F1'}}">充值</span></div>
									</div>
							</div>
			</div>
			<div class="fui-cell-group radius">
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.myinfo/');">
					<div class="fui-cell-text">基本资料</div>
					<div class="fui-cell-remark">{{pagedata.member.age}}岁 {{pagedata.member.sextitle}}</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.toinfo/')">
					<div class="fui-cell-text">择偶条件</div>
					<div class="fui-cell-remark">{{pagedata.tomember.pcd.city}} {{pagedata.tomember.age || '**'}}岁</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/quan//type=4')">
					<div class="fui-cell-text">我的动态</div>
					<div class="fui-cell-remark">已发布{{pagedata.member.newsnum}}条</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.images/')">
					<div class="fui-cell-text">我的相册</div>
					<div class="fui-cell-remark">已上传{{pagedata.member.picsnum}}张</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.siimg/')">
					<div class="fui-cell-text">我的私房照</div>
					<div class="fui-cell-remark">已上传{{pagedata.member.sipicsnum}}张</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.simivideo/')">
					<div class="fui-cell-text">我的私密视频</div>
					<div class="fui-cell-remark">已上传{{pagedata.member.simivideo}}个</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.myfuwu//id='+pagedata.member.fuwu_id)">
					<div class="fui-cell-text">我的服务站</div>
					<div class="fui-cell-remark">{{pagedata.member.fuwu.title ||'无'}}</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/member.myworker//id='+pagedata.member.worker_id)">
					<div class="fui-cell-text">我的红娘</div>
					<div class="fui-cell-remark">{{pagedata.member.worker.title ||'无'}}</div>
				</a>
			</div>
			<div class="fui-cell-group radius">
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/ping.orderlog/');">
					<div class="fui-cell-text">我的约会瓶</div>
					<div class="fui-cell-remark">约会瓶数{{pagedata.member.pingnum}}个</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/ping.desc/');">
					<div class="fui-cell-text">约会瓶介绍</div>
					<div class="fui-cell-remark">了解约会瓶规则</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/ping.timu/');">
					<div class="fui-cell-text">约会瓶答题</div>
					<div class="fui-cell-remark">前往答题</div>
				</a>
				<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_xiangqin/ping.datilog/');">
					<div class="fui-cell-text">答题记录</div>
					<div class="fui-cell-remark">最高得分{{pagedata.member.maxscore || 0}}分</div>
				</a>
			</div>
			<div ng-if="pagedata.pluginset.no_logs!=1" class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('core/member.credit_log/')">
								<div class="fui-cell-text">我的日常</div>
								<div class="fui-cell-remark">查看记录</div>
							</a>
							<div class="fui-icon-group col-4 selecter">
								<a ng-repeat="c in pagedata.pluginset.my_logs" class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json(c.action)">
									<div class="icon icon-green radius"><i class="icon {{c.icon}}"></i></div>
									<div class="text">{{c.title}}</div>
								</a>
							</div>
			</div>
			</div>
			<div class="fui-cell-group fui-cell-click" style="background:none">
							<a class="fui-cell external changepwd" href="javascript:;" ng-click="access_json('core/member.cpassword/')">
								<div class="fui-cell-text" style="text-align: center;">修改密码</div>
							</a>
							<a class="fui-cell external btn-logout" ng-click="post_json('core/member.logout/')">
								<div class="fui-cell-text" style="text-align: center;">退出登录</div>
							</a>
			</div>
	</div>
	<div ng-include="sys_html('_footer')"></div>
</div>
<div ng-if="pagedata.showrecharge" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff;}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showrecharge=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 1rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">您正在进行【{{pagedata.typetitle || '金币'}}】充值操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'>
					<input type='text' class='fui-input' placeholder="充值额度" ng-change="pagedata.upfee()" ng-model="pagedata.post.jifen">
					</div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<div class="c" style="font-size:0.6rem;margin-top:-0.3rem;color:#fff">
						需支付：￥{{pagedata.post.fee || 0}} （充值比例：{{pagedata.pluginset.jifen_rate}}比1）						
				</div>
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="pagedata.recharge()">确认充值</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_poster')"></div>
<script>
scope.pagedata.upposter=function(){
	scope.get('jy_xiangqin/member.index/upposter/',function(res){
		console.log(res)
		scope.pagedata.showposter=true;
		scope.pagedata.posterimg=res.posterimg;
		scope.$evalAsync();
	});
}
scope.pagedata.upfee=function(){
	scope.pagedata.post.fee=(scope.pagedata.post.jifen/scope.pagedata.pluginset.jifen_rate).toFixed(2);
}
scope.pagedata.recharge=function(){
	scope.pagedata.post.type=3
	scope.post_json('jy_xiangqin/member.index/recharge/',scope.pagedata.post,function(pay_id){
		var success_url='/member.index//type='+scope.pagedata.post.type;
		scope.tool.pay(pay_id,function(res){
				if(res.type=='success'){
					scope.message('支付成功！','success',success_url);
				}else{
					scope.message('支付失败！','success',success_url);
				}
		},'','',success_url,success_url);
	});
}
</script>